package start;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation = Propagation.SUPPORTS, readOnly = false)
public class A {
    public A() {
        super();
    }

    @Transactional(propagation = Propagation.REQUIRED, readOnly = false)
    public void doIt() {        
        for (int i = 0; i < 2; i++)
            System.out.println(Thread.currentThread().getName() + ":"+i+". HELLO from A");
    }
}
